package com.xx.springsecuritydemo.main.mapper;

import com.xx.springsecuritydemo.main.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xiaoXuan
 * @since 2024-11-25
 */
public interface RoleMapper extends BaseMapper<Role> {

    List<Role> getRolesByUid(@Param("uid") Integer uid);

    List<String> getRoleNameByUrl(@Param("url") String requestURI);
}
